package com.sky.zero.enums;

public enum SysEnum {

    SUCCESS(0, "请求成功"),
    PROGRESS(1, "处理中"),
    ERROR500(500, "请求异常"),
    ERROR404(404, "请求不存在"),
    ERROR700(700, "请求失败"),
    ERROR701(701, "重复请求"),
    ERROR900(900, "无访问权限"),
    ERROR999(999, "权限编码未找到"),
    ERROR1000(1000, "token失效请重新登录"),
    ERROR1001(1001, "令牌验证不通过"),
    ERROR1002(1002, "参数验证不通过"),
    ERROR1003(1003, "请求方式错误POST/GET"),
    ERROR1004(1004, "用户未登录"),
    ERROR1005(1005, "账号或密码不可为空"),

    ;
    private final Integer code;
    private final String msg;

    private SysEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
